{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <link rel="shortcut icon" href="{% static '' %}velonic/img/favicon_1.ico">

        <title>{{ mail.title }}</title>

        <!-- Bootstrap core CSS -->
        <link href="{% static '' %}velonic/css/bootstrap.min.css" rel="stylesheet">
        <link href="{% static '' %}velonic/css/bootstrap-reset.css" rel="stylesheet">

        <!--Animation css-->
        <link href="{% static '' %}velonic/css/animate.css" rel="stylesheet">

        <!--Icon-fonts css-->
        <link href="{% static '' %}velonic/css/font-awesome.css" rel="stylesheet" />
        <link href="{% static '' %}velonic/css/ionicons.min.css" rel="stylesheet" />
        <link href="{% static '' %}velonic/css/material-design-iconic-font.min.css" rel="stylesheet" />

        <!--bootstrap-wysihtml5-->
        <link rel="stylesheet" type="text/css" href="{% static '' %}velonic/css/bootstrap-wysihtml5.css" />


        <!-- Custom styles for this template -->
        <link href="{% static '' %}velonic/css/style.css" rel="stylesheet">
        <link href="{% static '' %}velonic/css/helper.css" rel="stylesheet">
        

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
        <!--[if lt IE 9]>
          <script src="{% static '' %}velonic/js/html5shiv.js"></script>
          <script src="{% static '' %}velonic/js/respond.min.js"></script>
        <![endif]-->


    </head>


    <body>

        <!-- Aside Start-->
        {% include 'velonic/block/side_nav.html' %}
        <!-- Aside Ends-->


        <!--Main Content Start -->
        <section class="content">
            
            <!-- Header -->
            {% include 'velonic/block/header.html' %}
            <!-- Header Ends -->
            


            <!-- Page Content Start -->
            <!-- ================== -->

            <div class="wraper container-fluid">
                <div class="page-title"> 
                    <h3 class="title">收件箱</h3>
                </div>


                <div class="row">
                    
                    <!-- Left sidebar -->
                    <div class="col-sm-3">
                        <a href="{% url 'mailBox' %}" class="btn btn-purple btn-block">Compose</a>
                        
                        <div class="p-0 m-t-20">
                            <div class="list-group mail-list">
                              <a href="{% url 'mailBox' %}" class="list-group-item"><i class="fa fa-download m-r-5"></i><b>收件箱(8)</b></a>
                              <a href="#" class="list-group-item"><i class="fa fa-star-o m-r-5"></i>收藏夹</a>
                              <a href="#" class="list-group-item"><i class="fa fa-file-text-o m-r-5"></i>草稿 <b>(20)</b></a>
                              <a href="#" class="list-group-item"><i class="fa fa-paper-plane-o m-r-5"></i>已发送</a>
                              <a href="#" class="list-group-item"><i class="fa fa-trash-o m-r-5"></i>回收站 <b>(354)</b></a>
                            </div>
                        </div>

                        <h3 class="panel-title m-t-40">标签</h3>
                        <div class=" m-t-20 p-0">
                            <div class="list-group no-border mail-list">
                              <a href="#" class="list-group-item"><span class="fa fa-circle text-info pull-right"></span>经验分享</a>
                              <a href="#" class="list-group-item"><span class="fa fa-circle text-warning pull-right"></span>产品监控</a>
                              <a href="#" class="list-group-item"><span class="fa fa-circle text-purple pull-right"></span>物流跟踪</a>
                              <a href="#" class="list-group-item"><span class="fa fa-circle text-pink pull-right"></span>店铺监控</a>
                              <a href="#" class="list-group-item"><span class="fa fa-circle text-success pull-right"></span>数据报告</a>
                            </div>
                        </div>
                    </div>
                    <!-- Left sidebar -->
                    
                    <!-- Right sidebar -->
                    <div class="col-sm-9">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="btn-toolbar" role="toolbar">
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-success"><i class="fa fa-fw fa-level-up fa-rotate-270"></i></button>
                                        <button type="button" class="btn btn-success"><i class="fa fa-exclamation-circle"></i></button>
                                        <button type="button" class="btn btn-success"><i class="fa fa-trash-o"></i></button>
                                    </div>
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                        <i class="fa fa-folder"></i>
                                        <b class="caret"></b>
                                        </button>
                                        <ul class="dropdown-menu" role="menu">
                                            <li><a href="#fakelink">Action</a></li>
                                            <li><a href="#fakelink">Another action</a></li>
                                            <li><a href="#fakelink">Something else here</a></li>
                                            <li class="divider"></li>
                                            <li><a href="#fakelink">Separated link</a></li>
                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                        <i class="fa fa-tag"></i>
                                        <b class="caret"></b>
                                        </button>
                                        <ul class="dropdown-menu" role="menu">
                                            <li><a href="#fakelink">Action</a></li>
                                            <li><a href="#fakelink">Another action</a></li>
                                            <li><a href="#fakelink">Something else here</a></li>
                                            <li class="divider"></li>
                                            <li><a href="#fakelink">Separated link</a></li>
                                        </ul>
                                    </div>
                                    
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                          More
                                          <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu">
                                          <li><a href="#fakelink">Dropdown link</a></li>
                                          <li><a href="#fakelink">Dropdown link</a></li>
                                        </ul>
                                    </div>
                                    
                                </div> <!-- btn-toolbar -->
                            </div> <!-- end col -->
                        </div> <!-- end row -->
                        

                        <!-- Message -->
                        <div class="panel panel-default m-t-20">
                            <div class="panel-heading"> 
                                <h3 class="panel-title">{{ mail.title }}</h3>
                            </div>
                            <div class="panel-body">
                                <div class="media m-b-30 ">
                                    <a href="#" class="pull-left">
                                        {% if sender %}
                                        <img alt="" src="/uploads/{{ sender.avatar }}" class="media-object thumb-sm">
                                            {% else %}
                                            <img alt="" src="{% static '' %}velonic/img/avatar-2.jpg" class="media-object thumb-sm">
                                        {% endif %}
                                    </a>
                                    <div class="media-body">
                                        <span class="media-meta pull-right">{{ mail.send_time }}</span>

                                        <h4 class="text-primary m-0">{{ sender.name }}</h4>
                                        <small class="text-muted">From: {{ sender.email }}</small>
                                    </div>
                                </div> <!-- media -->

                                <p><b>Hi {{ user.username }}...</b></p>
                                {% autoescape off %}
                                {{ mail.content }}
                                {% endautoescape %}
                                <hr/>

                                <h4> <i class="fa fa-paperclip m-r-10 m-b-10"></i> Attachments <span>(2)</span> </h4>


                            </div> <!-- panel-body -->
                        </div> <!-- End panel -->
                        <!-- End message -->

                        <!-- Replay -->
                        <!-- Replay -->

                    </div> <!-- Col-->
                
                </div><!-- End row -->

            </div> <!-- END Wraper -->

            <!-- Footer Start -->
            {% include 'velonic/block/footer.html' %}
            <!-- Footer Ends -->



        </section>
        


        <!-- js placed at the end of the document so the pages load faster -->
        <script src="{% static '' %}velonic/js/jquery.js"></script>
        <script src="{% static '' %}velonic/js/bootstrap.min.js"></script>
        <script src="{% static '' %}velonic/js/pace.min.js"></script>
        <script src="{% static '' %}velonic/js/wow.min.js"></script>
        <script src="{% static '' %}velonic/js/jquery.nicescroll.js" type="text/javascript"></script>

        <!--form validation-->
        <script type="text/javascript" src="{% static '' %}velonic/js/wysihtml5-0.3.0.js"></script>
        <script type="text/javascript" src="{% static '' %}velonic/js/bootstrap-wysihtml5.js"></script>

        <script>
            jQuery(document).ready(function(){
                $('.wysihtml5').wysihtml5();
            });
        </script>

        <script src="{% static '' %}velonic/js/jquery.app.js"></script>


    {% include 'velonic/block/footer_comm.html' %}


    </body>
</html>
